package uk.co.biggroup.lotto.syndicate.dataset;

public class DataLineFactory {
	
	public static DataLine getDataLine(String loteryType, String numbers, String raffle) {
		if (loteryType.equalsIgnoreCase("Lotto")) {
			DataLine data = (DataLine) new DataLineLotto(numbers, raffle);
			return data;
		} else if (loteryType.equalsIgnoreCase("EuroMillions")) {
			DataLine data = (DataLine) new DataLineEuroMillions(numbers, raffle);
			return data;
		} else {
			DataLine data = (DataLine) new DataLineLotto(numbers, raffle);
			return data;
		}
	}

}
